import java.util.ArrayList;
import java.util.List;

public class Xuesheng extends Person{



    private Kecheng[] kecheng;
    public Xuesheng() {
        kecheng = new Kecheng[3];
    }
    public Xuesheng(int stuId,String stuName,String sex) {
        this.Id = stuId;
        this.Name = stuName;
        this.sex = sex;
        this.Minzu = minzu;
        kecheng = new Kecheng[3];
    }




    List<Kecheng> courseList = new ArrayList<Kecheng>();


    void SelectCourse(Kecheng course) { // 学生选课
        courseList.add(course);
    }//选课

    void ExitCourse(Kecheng course) { // 学生退课
        courseList.remove(course);
    }//退课

    void printCourseList() {
        for (Kecheng course : courseList) {
            System.out.println(
                    "课程号：" + course.m_id +
                            "、课程名：" + course.m_name +
                            "、上课地点：" + course.m_place +
                            "、上课时间：" + course.m_time +
                            "、授课教师：" + course.m_Teacher.Name);
        }
    }
}
